package com.reach.redis.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import com.reach.redis.aspect.CacheAspect;
import com.reach.redis.manager.SpringContextUtil;

@Configuration
public class BeanManager {

	@Bean
	public  SpringContextUtil springContextUtil() {
		return new SpringContextUtil();
	}

	@DependsOn("springContextUtil")
	@Bean("cacheAspect")
	public CacheAspect  cacheAspect() {
		return new CacheAspect();
	}
	

}
